#pragma once
#include "Shape.h"
#include "Intersection.h"
class Plane : public Shape{
public:
	Plane(vec4 _pos, Rotate4 _rot, vec4 _upVec);
	~Plane();

	bool intersect(Intersection &_int);
	vec4 getColor(Intersection &_int);
	vec4 up(){ return upVec; }
	void up(vec4 _up){ upVec = normalize(_up); }

	vec4 getMaxBound(){ return vec4(0, 0, 0, 0); }
	vec4 getMinBound(){ return vec4(0, 0, 0, 0); }
	bool isBounded(){ return false; }
	vec4 getCenter();
private:
	//the up vector
	vec4 upVec;
};

